package scala.collection.change

import scala.collection.parallel.CollectionConverters.ImmutableIterableIsParallelizable

/**
 * 并行集合
 */
object ParTest1 {
  def main(args: Array[String]): Unit = {
    val result1 = (0 to 100).map { case_ => Thread.currentThread().getName }
    val parList = (0 to 100).par.map { case_ => Thread.currentThread().getName }

    println(result1)
    println(parList)
  }
}
